-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sort constructors first again (#171)
* Fixed sort_constructors_first * Fixed sort_constructors_first again * formated files * Update analysis_options.yaml
- Loading branch information
1 parent
d2e43ed
commit 051c308
Showing
84 changed files
with
524 additions
and
568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
class AddCollaboratorsResponse { | ||
factory AddCollaboratorsResponse.fromJson(Map<String, dynamic> json) => | ||
AddCollaboratorsResponse( | ||
added: List<String>.from(json['added'].map((x) => x)), | ||
existing: List<String>.from(json['existing'].map((x) => x)), | ||
invalid: List<String>.from(json['invalid'].map((x) => x)), | ||
); | ||
|
||
AddCollaboratorsResponse({ | ||
this.added, | ||
this.existing, | ||
this.invalid, | ||
}); | ||
|
||
List<String> added; | ||
List<String> existing; | ||
List<String> invalid; | ||
|
||
factory AddCollaboratorsResponse.fromJson(Map<String, dynamic> json) => | ||
AddCollaboratorsResponse( | ||
added: List<String>.from(json['added'].map((x) => x)), | ||
existing: List<String>.from(json['existing'].map((x) => x)), | ||
invalid: List<String>.from(json['invalid'].map((x) => x)), | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
class AddGroupMembersResponse { | ||
factory AddGroupMembersResponse.fromJson(Map<String, dynamic> json) => | ||
AddGroupMembersResponse( | ||
added: List<String>.from(json['added'].map((x) => x)), | ||
pending: List<String>.from(json['pending'].map((x) => x)), | ||
invalid: List<String>.from(json['invalid'].map((x) => x)), | ||
); | ||
|
||
AddGroupMembersResponse({ | ||
this.added, | ||
this.pending, | ||
this.invalid, | ||
}); | ||
|
||
List<String> added; | ||
List<String> pending; | ||
List<String> invalid; | ||
|
||
factory AddGroupMembersResponse.fromJson(Map<String, dynamic> json) => | ||
AddGroupMembersResponse( | ||
added: List<String>.from(json['added'].map((x) => x)), | ||
pending: List<String>.from(json['pending'].map((x) => x)), | ||
invalid: List<String>.from(json['invalid'].map((x) => x)), | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,45 @@ | ||
import 'package:mobile_app/models/links.dart'; | ||
|
||
class Collaborators { | ||
factory Collaborators.fromJson(Map<String, dynamic> json) => Collaborators( | ||
data: List<Collaborator>.from( | ||
json['data'].map((x) => Collaborator.fromJson(x))), | ||
links: Links.fromJson(json['links']), | ||
); | ||
|
||
Collaborators({ | ||
this.data, | ||
this.links, | ||
}); | ||
|
||
List<Collaborator> data; | ||
Links links; | ||
|
||
factory Collaborators.fromJson(Map<String, dynamic> json) => Collaborators( | ||
data: List<Collaborator>.from( | ||
json['data'].map((x) => Collaborator.fromJson(x))), | ||
links: Links.fromJson(json['links']), | ||
); | ||
} | ||
|
||
class Collaborator { | ||
factory Collaborator.fromJson(Map<String, dynamic> json) => Collaborator( | ||
id: json['id'], | ||
type: json['type'], | ||
attributes: CollaboratorAttributes.fromJson(json['attributes']), | ||
); | ||
|
||
Collaborator({ | ||
this.id, | ||
this.type, | ||
this.attributes, | ||
}); | ||
|
||
String id; | ||
String type; | ||
CollaboratorAttributes attributes; | ||
|
||
factory Collaborator.fromJson(Map<String, dynamic> json) => Collaborator( | ||
id: json['id'], | ||
type: json['type'], | ||
attributes: CollaboratorAttributes.fromJson(json['attributes']), | ||
); | ||
} | ||
|
||
class CollaboratorAttributes { | ||
CollaboratorAttributes({ | ||
this.name, | ||
}); | ||
|
||
String name; | ||
|
||
factory CollaboratorAttributes.fromJson(Map<String, dynamic> json) => | ||
CollaboratorAttributes( | ||
name: json['name'], | ||
); | ||
|
||
CollaboratorAttributes({ | ||
this.name, | ||
}); | ||
String name; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import 'package:flutter/foundation.dart'; | ||
|
||
class DialogRequest { | ||
final String title; | ||
final String description; | ||
final String buttonTitle; | ||
final String cancelTitle; | ||
|
||
DialogRequest({ | ||
@required this.title, | ||
this.description, | ||
this.buttonTitle, | ||
this.cancelTitle, | ||
}); | ||
|
||
final String title; | ||
final String description; | ||
final String buttonTitle; | ||
final String cancelTitle; | ||
} | ||
|
||
class DialogResponse { | ||
final bool confirmed; | ||
|
||
DialogResponse({ | ||
this.confirmed, | ||
}); | ||
|
||
final bool confirmed; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.