Merge branch 'develop' of github.com:invoiceninja/flutter-client into develop
This commit is contained in:
commit
2da1893b3f
|
|
@ -20,6 +20,8 @@ abstract class PreImportResponse
|
||||||
|
|
||||||
BuiltList<BuiltList<String>> get headers;
|
BuiltList<BuiltList<String>> get headers;
|
||||||
|
|
||||||
|
BuiltList<String> get available;
|
||||||
|
|
||||||
BuiltList<String> get fields1 =>
|
BuiltList<String> get fields1 =>
|
||||||
headers.isEmpty ? BuiltList<String>() : headers[0];
|
headers.isEmpty ? BuiltList<String>() : headers[0];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,10 @@ class _$PreImportResponseSerializer
|
||||||
specifiedType: const FullType(BuiltList, const [
|
specifiedType: const FullType(BuiltList, const [
|
||||||
const FullType(BuiltList, const [const FullType(String)])
|
const FullType(BuiltList, const [const FullType(String)])
|
||||||
])),
|
])),
|
||||||
|
'available',
|
||||||
|
serializers.serialize(object.available,
|
||||||
|
specifiedType:
|
||||||
|
const FullType(BuiltList, const [const FullType(String)])),
|
||||||
];
|
];
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
@ -54,6 +58,12 @@ class _$PreImportResponseSerializer
|
||||||
const FullType(BuiltList, const [const FullType(String)])
|
const FullType(BuiltList, const [const FullType(String)])
|
||||||
])) as BuiltList<Object>);
|
])) as BuiltList<Object>);
|
||||||
break;
|
break;
|
||||||
|
case 'available':
|
||||||
|
result.available.replace(serializers.deserialize(value,
|
||||||
|
specifiedType:
|
||||||
|
const FullType(BuiltList, const [const FullType(String)]))
|
||||||
|
as BuiltList<Object>);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -66,18 +76,23 @@ class _$PreImportResponse extends PreImportResponse {
|
||||||
final String hash;
|
final String hash;
|
||||||
@override
|
@override
|
||||||
final BuiltList<BuiltList<String>> headers;
|
final BuiltList<BuiltList<String>> headers;
|
||||||
|
@override
|
||||||
|
final BuiltList<String> available;
|
||||||
|
|
||||||
factory _$PreImportResponse(
|
factory _$PreImportResponse(
|
||||||
[void Function(PreImportResponseBuilder) updates]) =>
|
[void Function(PreImportResponseBuilder) updates]) =>
|
||||||
(new PreImportResponseBuilder()..update(updates)).build();
|
(new PreImportResponseBuilder()..update(updates)).build();
|
||||||
|
|
||||||
_$PreImportResponse._({this.hash, this.headers}) : super._() {
|
_$PreImportResponse._({this.hash, this.headers, this.available}) : super._() {
|
||||||
if (hash == null) {
|
if (hash == null) {
|
||||||
throw new BuiltValueNullFieldError('PreImportResponse', 'hash');
|
throw new BuiltValueNullFieldError('PreImportResponse', 'hash');
|
||||||
}
|
}
|
||||||
if (headers == null) {
|
if (headers == null) {
|
||||||
throw new BuiltValueNullFieldError('PreImportResponse', 'headers');
|
throw new BuiltValueNullFieldError('PreImportResponse', 'headers');
|
||||||
}
|
}
|
||||||
|
if (available == null) {
|
||||||
|
throw new BuiltValueNullFieldError('PreImportResponse', 'available');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -93,20 +108,23 @@ class _$PreImportResponse extends PreImportResponse {
|
||||||
if (identical(other, this)) return true;
|
if (identical(other, this)) return true;
|
||||||
return other is PreImportResponse &&
|
return other is PreImportResponse &&
|
||||||
hash == other.hash &&
|
hash == other.hash &&
|
||||||
headers == other.headers;
|
headers == other.headers &&
|
||||||
|
available == other.available;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __hashCode;
|
int __hashCode;
|
||||||
@override
|
@override
|
||||||
int get hashCode {
|
int get hashCode {
|
||||||
return __hashCode ??= $jf($jc($jc(0, hash.hashCode), headers.hashCode));
|
return __hashCode ??= $jf(
|
||||||
|
$jc($jc($jc(0, hash.hashCode), headers.hashCode), available.hashCode));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
return (newBuiltValueToStringHelper('PreImportResponse')
|
return (newBuiltValueToStringHelper('PreImportResponse')
|
||||||
..add('hash', hash)
|
..add('hash', hash)
|
||||||
..add('headers', headers))
|
..add('headers', headers)
|
||||||
|
..add('available', available))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -125,12 +143,18 @@ class PreImportResponseBuilder
|
||||||
set headers(ListBuilder<BuiltList<String>> headers) =>
|
set headers(ListBuilder<BuiltList<String>> headers) =>
|
||||||
_$this._headers = headers;
|
_$this._headers = headers;
|
||||||
|
|
||||||
|
ListBuilder<String> _available;
|
||||||
|
ListBuilder<String> get available =>
|
||||||
|
_$this._available ??= new ListBuilder<String>();
|
||||||
|
set available(ListBuilder<String> available) => _$this._available = available;
|
||||||
|
|
||||||
PreImportResponseBuilder();
|
PreImportResponseBuilder();
|
||||||
|
|
||||||
PreImportResponseBuilder get _$this {
|
PreImportResponseBuilder get _$this {
|
||||||
if (_$v != null) {
|
if (_$v != null) {
|
||||||
_hash = _$v.hash;
|
_hash = _$v.hash;
|
||||||
_headers = _$v.headers?.toBuilder();
|
_headers = _$v.headers?.toBuilder();
|
||||||
|
_available = _$v.available?.toBuilder();
|
||||||
_$v = null;
|
_$v = null;
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
|
@ -154,12 +178,17 @@ class PreImportResponseBuilder
|
||||||
_$PreImportResponse _$result;
|
_$PreImportResponse _$result;
|
||||||
try {
|
try {
|
||||||
_$result = _$v ??
|
_$result = _$v ??
|
||||||
new _$PreImportResponse._(hash: hash, headers: headers.build());
|
new _$PreImportResponse._(
|
||||||
|
hash: hash,
|
||||||
|
headers: headers.build(),
|
||||||
|
available: available.build());
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
String _$failedField;
|
String _$failedField;
|
||||||
try {
|
try {
|
||||||
_$failedField = 'headers';
|
_$failedField = 'headers';
|
||||||
headers.build();
|
headers.build();
|
||||||
|
_$failedField = 'available';
|
||||||
|
available.build();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw new BuiltValueNestedFieldError(
|
throw new BuiltValueNestedFieldError(
|
||||||
'PreImportResponse', _$failedField, e.toString());
|
'PreImportResponse', _$failedField, e.toString());
|
||||||
|
|
|
||||||
|
|
@ -199,6 +199,9 @@ Serializers _$serializers = (new Serializers().toBuilder()
|
||||||
const FullType(BuiltList, const [const FullType(String)])
|
const FullType(BuiltList, const [const FullType(String)])
|
||||||
]),
|
]),
|
||||||
() => new ListBuilder<BuiltList<String>>())
|
() => new ListBuilder<BuiltList<String>>())
|
||||||
|
..addBuilderFactory(
|
||||||
|
const FullType(BuiltList, const [const FullType(String)]),
|
||||||
|
() => new ListBuilder<String>())
|
||||||
..addBuilderFactory(
|
..addBuilderFactory(
|
||||||
const FullType(BuiltList, const [const FullType(ClientEntity)]),
|
const FullType(BuiltList, const [const FullType(ClientEntity)]),
|
||||||
() => new ListBuilder<ClientEntity>())
|
() => new ListBuilder<ClientEntity>())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue